package ysq.xyg.sys.model.po;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Getter
@Setter
@Table(name = "xyg_sys_job")
public class SysJob implements Serializable {

    @Id
    private String id;

    @Column(name = "class_name")
    private String className;

    /**
     * 任务名称
     */
    @Column(name = "job_name")
    private String jobName;

    /**
     * 任务组名
     */
    @Column(name = "job_group")
    private String jobGroup;

    /**
     * 任务方法
     */
    @Column(name = "method_name")
    private String methodName;

    /**
     * 方法参数
     */
    @Column(name = "params")
    private String params;

    /**
     * cron执行表达式
     */
    @Column(name = "cron_expression")
    private String cronExpression;

    /**
     * 状态（0正常 1暂停）
     */
    @Column(name = "status")
    private String status;
}